package 设计原则.迪米特法则;

/**
 * @Author: kirito
 * @Date: 2024/3/7 20:44
 * @Description: TODO
 */

public class Client {
    public static void main(String[] args) {
        //创建经纪人
        Agent agent = new Agent();
        //创建明星对象
        Star star = new Star("IUU");
        Fans fans = new Fans("kirito");
        Company yqn = new Company("YQN");
        agent.setStar(star);
        agent.setFans(fans);
        agent.setCompany(yqn);

        agent.business();
        agent.meeting();
    }

}
